package com.yb.guigu.pick.product.controller;

import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Copyright (C), 2022-2023, 姚兵
 * Author: 32210
 * Date: 2023/6/20 12:13
 * FileName: DemoController
 * Description:
 */

@RestController
public class DemoController {


    @RequestMapping("/haha")
    @PreAuthorize("hasAuthority('ADMIN')")
    public String haha(){
        return "haha";
    }
}
